import { WeaTools } from 'ecCom';

// 内容导出condition
export const getBlogBackstageExportCondition = params => {
  return WeaTools.callApi('/api/blog/backstageexport/getBlogBackstageExportCondition', 'GET', params);
};

export const operateBlogBackstageExport = params => {
  return WeaTools.callApi('/api/blog/backstageexport/operateBlogBackstageExport', 'POST', params);
};

export const getExportColumn = params => {
  return WeaTools.callApi('/api/ec/dev/table/showCol', 'GET', params);
};

/**
 * 绩效-考核指标项-列表
 * jiansong 2019/6/11
 */
export const exportBlogList = params => {
  return WeaTools.callApi('/api/blog/backstageexport/exportBlogList', 'GET', params);
};

export const getTableSortDatas = params => {
  return WeaTools.callApi('/api/blog/base/getTableSortDatas', 'GET', params)
};
export const updateExportSort = params => {
  return WeaTools.callApi('/api/blog/base/updateExportSort', 'POST', params)
};


/**
 * 绩效-考核指标项-列表
 * jiansong 2019/6/11
 */
export const exportBlogListLog = params => {
  return WeaTools.callApi('/api/blog/backstageexport/exportBlogListLog', 'GET', params);
};

/**
 * 绩效-考核指标项-列表
 * jiansong 2019/6/11
 */
export const exportBlogContentList = params => {
  return WeaTools.callApi('/api/blog/backstageexport/exportBlogContentList', 'GET', params);
};



//指定共享-高级搜索 条件获取
export const getBlogBackstageExportSearchCondition = params => {
  return WeaTools.callApi(
    "/api/blog/backstageshare/getBlogBackstageExportSearchCondition",
    "GET",
    params
  );
};


//指定共享-高级搜索 条件获取
export const getBlogBackstageExportLogSearchCondition = params => {
  return WeaTools.callApi(
    "/api/blog/backstageshare/getBlogBackstageExportLogSearchCondition",
    "GET",
    params
  );
};

// 指定共享添加分享规则
export const getBlogBackstageExportAddCondition = params => {
  return WeaTools.callApi(
    "/api/blog/backstageshare/getBlogBackstageExportAddCondition",
    "GET",
    params
  );
};

// 指定共享规则保存和删除
export const operateExportPermissions = params => {
  return WeaTools.callApi(
    "/api/blog/backstageshare/operateExportPermissions",
    "POST",
    params
  );
};